var regexp = {
    url: /[a-zA-z]+:\/\/[^\s]/, // url地址验证
    money: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/, //金额
    numberInt: /^-?[1-9]\d*$/, //整数
    number: /^(0|\+?[1-9][0-9]*)$/, //0和正整数
    number0: /^(\+?[1-9][0-9]*)$/, //正整数
    numberF: /^[1-9]\d*\.\d*|0\.\d*[1-9]\d*$/, //正浮点数
    numberF0: /^[0-9]+.?[0-9]*$/, //0和正浮点数
    english: /^[A-Za-z]+$/, //仅字母
    chinese: /^[\u0391-\uFFE5]+$/,   //仅中文
    cn_en_num: /^[\u4e00-\u9fa5_a-zA-Z0-9]+$/,  //中文英文数字
    phone: /^1[3456789]\d{9}$/, //手机号
    qqNum: /[1-9]([0-9]{4,10})/, //QQ号
    wxNum: /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/, //微信号
    fax: /^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/, //判断输入的参数是否是个合格的固定电话号码
    percent: /^(?:[1-9][0-9]?|100)(?:\.[0-9]{1,2})?$/, //百分比
    email: /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,   //邮箱
    ip: /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])((\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}|(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){5})$/, //ip
    idCard: /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,  //身份证号码
    userName: /^[A-Za-z0-9\u4e00-\u9fa5]+$/, //用户名
    password: /^[a-z0-9A-Z]{6,20}$/, //6-20位的密码
    len6_16: /.{6,16}$/, //6-16位字符
    chineseName: /^[\u4E00-\u9FA5]{2,4}$/, //中文姓名
    passwordSymbol: /^[a-z0-9A-Z!@#$%^&.()_+\-=*/.?:]+$/, //6-16位的密码允许部分特殊字符!@#$%^&.()_+-*/.?:
    zfbNum: /^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/,//支付宝账号验证
    bankCard: /^([1-9]{1})(\d{14}|\d{18})$/,//银行卡验证
}

export default regexp